<?php
Doo::loadCore('db/DooModel');

class FrbMessageBase extends DooModel{

    /**
     * @var int Max length is 11.
     */
    public $mes_id;

    /**
     * @var varchar Max length is 120.
     */
    public $mes_nom;

    /**
     * @var varchar Max length is 45.
     */
    public $mes_tel;

    /**
     * @var varchar Max length is 120.
     */
    public $mes_mail;

    /**
     * @var varchar Max length is 45.
     */
    public $mes_mes;

    /**
     * @var int Max length is 11.
     */
    public $mes_flag;

    /**
     * @var date
     */
    public $mes_date;

    public $_table = 'frb_message';
    public $_primarykey = 'mes_id';
    public $_fields = array('mes_id','mes_nom','mes_tel','mes_mail','mes_mes','mes_flag','mes_date');

    public function getVRules() {
        return array(
                'mes_id' => array(
                        array( 'integer' ),
                        array( 'maxlength', 11 ),
                        array( 'optional' ),
                ),

                'mes_nom' => array(
                        array( 'maxlength', 120 ),
                        array( 'notnull' ),
                ),

                'mes_tel' => array(
                        array( 'maxlength', 45 ),
                        array( 'optional' ),
                ),

                'mes_mail' => array(
                        array( 'maxlength', 120 ),
                        array( 'optional' ),
                ),

                'mes_mes' => array(
                        array( 'notnull' ),
                ),

                'mes_flag' => array(
                        array( 'integer' ),
                        array( 'maxlength', 11 ),
                        array( 'notnull' ),
                ),

                'mes_date' => array(
                        array( 'date' ),
                        array( 'notnull' ),
                )
            );
    }

}